package com.fairylove.rpc.transport.socket;

import com.fairylove.rpc.entity.RpcRequest;
import com.fairylove.rpc.serializer.CommonSerializer;
import com.fairylove.rpc.transport.utils.ObjectWriter;

/**
 * 客户端类通用接口
 *
 */
public interface RpcClient {

    int DEFAULT_SERIALIZER = CommonSerializer.KROY_SERIALIZER;

    Object sendRequest(RpcRequest rpcRequest);

//    Object sendRequest(RpcRequest rpcRequest,String host,int port);

}